package com.newjiabo.common.ski.media.module.entity.dto.pay;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;

/**
 * @author CaoMengHui.
 */
@ApiModel("商品信息类")
public class Amount {
    /**
     * 订单总金额，单位为分
     */
    @ApiModelProperty("订单总金额")
    @NotEmpty(message = "订单总金额不能为空！")
    private int total;

    /**
     * CNY：人民币，境内商户号仅支持人民币。
     */
    @ApiModelProperty("CNY")
    @NotEmpty(message = "人民币！")
    private String currency;

    public Amount(int total, String currency) {
        this.total = total;
        this.currency = currency;
    }

    public Amount() {
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }
}
